package com.wenjiang.Interceptor;

import com.wenjiang.config.LanTuPayProperties;

/**
 * <p>
 * 抽象的拦截器对象
 * </p>
 *
 * @author lwj
 * @since 2024/11/29.
 */
public abstract class AbstractInterceptor  implements HttpInterceptor{

    /**
     * 蓝兔配置
     */
    protected LanTuPayProperties lanTuPayProperties;


    /**
     * 下一个节点
     */
    protected HttpInterceptor next;


    public AbstractInterceptor(LanTuPayProperties lanTuPayProperties) {
        this.lanTuPayProperties = lanTuPayProperties;
    }

    /**
     * 获取下个节点
     * @return
     */
    @Override
    public HttpInterceptor next() {
        return this.next;
    }


    /**
     * 添加下个节点
     * @return
     */
    @Override
    public HttpInterceptor appendNext(HttpInterceptor httpInterceptor) {
        this.next = httpInterceptor;
        return next;
    }
}
